// CMainDlg.cpp : Implementation of CCMainDlg

#include "stdafx.h"
#include "CMainDlg.h"
#include "../LoAg.h"

BOOL CALLBACK  MainDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
	switch(message)
	{
	case WM_INITDIALOG:
        {
			LoAgXcpCreateControl( GetDlgItem( hDlg, IDC_STATIC_CONTROL ) );
        }
		return (TRUE);
	case WM_CLOSE:
        {
			::PostQuitMessage(0);                
        }
		return (TRUE);
	case WM_COMMAND:
		switch (LOWORD(wParam))
		{
		case IDOK:
		case IDCANCEL:
            {
				EndDialog( hDlg, LOWORD(wParam));
            }
			return (TRUE);
		}
		return (FALSE);
	}
	return (FALSE);
}


void MainDlg()
{
	DialogBox( GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_CMAINDLG), NULL, MainDlgProc );
}